package cn.spiral.test.conf;

import org.quartz.JobDataMap;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.quartz.Scheduler;
import org.quartz.impl.StdSchedulerFactory;
import org.springframework.scheduling.quartz.QuartzJobBean;

import cn.spiral.user.entity.User;

public class f_min extends QuartzJobBean{

	@Override
	protected void executeInternal(JobExecutionContext jobExecutionContext) throws JobExecutionException {
		JobDataMap jobDataMap=jobExecutionContext.getJobDetail().getJobDataMap();
		int miao=jobDataMap.getInt("s");
		//User user=(User) jobDataMap.get("user");
		System.out.println("每"+miao+"秒执行一次");
		//System.out.println("user:"+user.getName());
		
		
	}

}
